﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;

namespace ProjektZespolowy1
{
    public partial class Form3 : Form
    {
        Menu menu = new Menu();
        public Form3()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //menu.dodajRodzaj(textBox1.Text);
            XmlDocument dok = new XmlDocument();
            dok.Load("menu.xml");
            XmlElement element = dok.CreateElement("text");
            dok.DocumentElement.AppendChild(element);
            dok.Save("menu.xml");
        }
    }
}
